<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>错误提示--layphp后台管理模板</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css" media="all" />
    <script type="text/javascript" src="__PUBLIC__/static/layui/layui.js"></script>
</head>
<body class="childrenBody">
<div style="text-align: center; padding:11% 0;">
    <i class="layui-icon" style="line-height:20rem; font-size:20rem; color: #393D50;">&#x1006;</i>
    <p style="font-size: 20px; font-weight: 300; color: #999;"><?php echo($error); ?></p>
    <p style="font-size: 20px; font-weight: 300; color: #999;">
        <a style="font-size: 20px; font-weight: 300; color: #999;" id="href" href="<?php echo($jumpUrl); ?>">如果你的浏览器没有自动跳转，请点击这里...</a>
        等待时间：<b id="wait"><?php echo($waitSecond); ?></b>
    </p>
</div>
<script type="text/javascript">
    layui.use('layer',function(){
        var layer = parent.layer === undefined ? layui.layer : parent.layer;
        setTimeout(function(){
            layer.closeAll();
        },2000);
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    });
</script>
</body>
</html>